import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class CardDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Card(
        color: Colors.blueAccent,
        elevation: 20.0,
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.all(Radius.circular(20.0))
        ),
        clipBehavior: Clip.antiAlias,
        child: Container(
          width: 200,
          height: 200,
          alignment: Alignment.center,
          child: Text("Card"),
        ),
      ),
    );
    // return Card(
    //   color: Colors.blueAccent,
    //   elevation: 20.0,
    //   shape: RoundedRectangleBorder(
    //     borderRadius: BorderRadius.all(Radius.circular(20.0)),
    //   ),
    //   clipBehavior: Clip.antiAlias,
    //   child: Container(
    //     color: Colors.deepOrangeAccent,
    //     width: 200,
    //     height: 150,
    //     alignment: Alignment.center,
    //     child: Text("Card",style:TextStyle(fontSize: 28,color:Colors.white)),
    //   ),
    // );
  }
}